//
//  LBView.m
//  MoGuRadio
//
//  Created by dlios on 15/6/7.
//  Copyright (c) 2015年 mogu.com 蘑菇科技. All rights reserved.
//

#import "LBView.h"

@implementation LBView


- (instancetype)init
{
    

    self = [super init];
    if (self) {
        
        self.backgroundColor = [UIColor colorWithRed:0.097 green:0.6701 blue:0.4134 alpha:1.0];
        
        self.sectionLabel = [[UILabel alloc] initWithFrame:CGRectMake(8 *LBVIEW_WIDTH1 / 375.0, 0 * LBVIEW_HEIGHT1 / 667.0, LBVIEW_WIDTH1 / 2, 30 * LBVIEW_HEIGHT1 / 667.0)];
        self.sectionLabel.font = [UIFont boldSystemFontOfSize:15];
        [self addSubview:self.sectionLabel];
        [_sectionLabel release];
        
        
//        self.moreButton = [UIButton buttonWithType:UIButtonTypeSystem];
//        self.moreButton.frame = CGRectMake(LBVIEW_WIDTH1 / 3 * 2.7 * kXWidth, - 10 * kYHeight, LBVIEW_WIDTH1 / 3 * kXWidth, 50 * kYHeight);
//        [self addSubview:self.moreButton];
        
        
        self.moreButton = [UIButton buttonWithType:UIButtonTypeSystem];
        self.moreButton.frame = CGRectMake(240 * kXWidth, - 10 * kYHeight, 200 * kXWidth, 50 * kYHeight);
        [self addSubview:self.moreButton];
        
        
//        self.rightImageView = [[UIImageView alloc] initWithFrame:CGRectMake(LBVIEW_WIDTH1 / 3 * 2.8 * kXWidth, 7 * kYHeight, LBVIEW_WIDTH1 / 14 * kXWidth, 17 * kYHeight)];
//        [self addSubview:self.rightImageView];
//        [_rightImageView release];
        
        
        self.rightImageView = [[UIImageView alloc] initWithFrame:CGRectMake(355 * kXWidth, 7 * kYHeight, 17 * kXWidth, 17 * kYHeight)];
        [self addSubview:self.rightImageView];
        [_rightImageView release];

        
    }
    return self;
}


- (void)dealloc
{
    [_rightImageView release];
    [_sectionLabel release];
    [super dealloc];
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
